import React from 'react';
import { inject,observer } from 'mobx-react';
import * as mobx from 'mobx';
import { getAntd,getEcCom,getLabel } from '../../../util/convert';
import Content from './Content';

@inject('freeFlowStore')
@observer
export default class Main extends React.Component{
    render(){
        const { WeaDialog } = getEcCom();
        const { visible,freeFlowStore } = this.props;
        const { loading } = freeFlowStore;
        return (
            <WeaDialog
                visible={visible}
                loadCss={true}
                initLoadCss={true}
                loading={loading}
                title={getLabel(21781,'流转设定')}
                icon="icon-coms-workflow"
                iconBgcolor='#0079DE'
                maskClosable={false}
                onCancel={this.doCancel}
                style={{width:"750px", height:"500px"}}
            >
                <Content {...this.props} />
            </WeaDialog>
        )
    }
    doCancel = () => {
        const { freeFlowStore } = this.props;
        freeFlowStore.closeEvent();
    }
}
